package com.Guo.entity;

import org.springframework.stereotype.Component;

/**
 * @author Admin
 * @project User
 * @description
 * @date 2020-10-23-11:48
 */
@Component
public class User {
    private String name;
    private String word;

    public String getWord() {
        return word;
    }

    public void setWord(String word) {
        this.word = word;
    }

    public  void sayWord(){
        System.out.println(this.getName()+"说:"+this.getWord());
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
}
